Skip to content

PlainTextEdit

Sub classes

Name Children Inherits
AutoResizePlainTextEdit
prettyqt.custom_widgets.autoresizingtextedit
PlainTextEdit which adjusts its height to the contained text.
    SingleLineTextEdit
    prettyqt.custom_widgets.editors.singlelinetextedit
    LogTextEdit
    prettyqt.custom_widgets.logtextedit
      CodeEditor
      prettyqt.custom_widgets.codeeditor
      Code editor with line numbers, syntax highlighting and line markers.

        Base classes

        Name Children Inherits
        PlainTextEditMixin
        prettyqt.widgets.plaintextedit
        QPlainTextEdit
        PySide6.QtWidgets
        QPlainTextEdit(self, text: str, /, parent: PySide6.QtWidgets.QWidget | None \= None, *, tabChangesFocus: bool | None \= None, documentTitle: str | None \= None, undoRedoEnabled: bool | None \= None, lineWrapMode: PySide6.QtWidgets.QPlainTextEdit.LineWrapMode | None \= None, readOnly: bool | None \= None, plainText: str | None \= None, overwriteMode: bool | None \= None, tabStopDistance: float | None \= None, cursorWidth: int | None \= None, textInteractionFlags: PySide6.QtCore.Qt.TextInteractionFlag | None \= None, blockCount: int | None \= None, maximumBlockCount: int | None \= None, backgroundVisible: bool | None \= None, centerOnScroll: bool | None \= None, placeholderText: str | None \= None) -> None

        ⋔ Inheritance diagram

        graph TD
          3482197220["widgets.PlainTextEdit"]
          82444806["widgets.PlainTextEditMixin"]
          1259044718["widgets.AbstractScrollAreaMixin"]
          1689631995["widgets.FrameMixin"]
          829357528["widgets.WidgetMixin"]
          3227531497["core.ObjectMixin"]
          2751680898["builtins.object"]
          625385617["gui.PaintDeviceMixin"]
          2639575484["QtWidgets.QPlainTextEdit"]
          1459025998["QtWidgets.QAbstractScrollArea"]
          3822057598["QtWidgets.QFrame"]
          3620195106["QtWidgets.QWidget"]
          3984060476["QtCore.QObject"]
          37984305["Shiboken.Object"]
          673956333["QtGui.QPaintDevice"]
          82444806 --> 3482197220
          1259044718 --> 82444806
          1689631995 --> 1259044718
          829357528 --> 1689631995
          3227531497 --> 829357528
          2751680898 --> 3227531497
          625385617 --> 829357528
          2751680898 --> 625385617
          2751680898 --> 829357528
          2751680898 --> 1689631995
          2751680898 --> 1259044718
          2751680898 --> 82444806
          2639575484 --> 3482197220
          1459025998 --> 2639575484
          3822057598 --> 1459025998
          3620195106 --> 3822057598
          3984060476 --> 3620195106
          37984305 --> 3984060476
          2751680898 --> 37984305
          673956333 --> 3620195106
          37984305 --> 673956333

        🛈 DocStrings

        Bases: PlainTextEditMixin, QPlainTextEdit

        Widget that is used to edit and display plain text.

        Source code in prettyqt/widgets/plaintextedit.py
        class PlainTextEdit(PlainTextEditMixin, widgets.QPlainTextEdit):
            """Widget that is used to edit and display plain text."""
        

        :fa-brands-github: Show source on GitHub